package org.halk.oracle_demo.service.impl;

import org.halk.oracle_demo.dao.UserInfoTestDao;
import org.halk.oracle_demo.entity.UserInfoTest;
import org.halk.oracle_demo.service.MyTestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author halk
 * @Date 2023/5/18 15:30
 */
@Service
public class MyTestServiceImpl implements MyTestService {

    @Resource
    private UserInfoTestDao userInfoTestDao;

    @Override
    public List<UserInfoTest> get() {
        this.userInfoTestDao.insert();
        return this.userInfoTestDao.getAllList();
    }

    @Override
    public void create() {
        this.userInfoTestDao.create();
    }
}
